package cn.fintecher.pangolin.service.dataimp.elastic;

import cn.fintecher.pangolin.common.enums.ExportTemplateType;
import cn.fintecher.pangolin.entity.elastic.ExportTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Auther: xiaqun
 * @Description:
 * @Date: 10:13 2019/10/16
 */
public interface ExportTemplateElastic extends ElasticsearchRepository<ExportTemplate, String> {
    /**
     * 查询委托方下模板
     */
    List<ExportTemplate> findAllByPrincipalIdAndType(String principalId, ExportTemplateType type);

    List<ExportTemplate> findAllByPrincipalIdAndTypeAndName(String principalId, ExportTemplateType type,String name);
}
